package com.sugar.psych.assessment.module.business.controller.admin.configrisklevel.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.sugar.psych.assessment.framework.excel.core.annotations.DictFormat;
import com.sugar.psych.assessment.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 风险等级配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ConfigRiskLevelRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "23531")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "风险等级（字典表：business_psych_question_risk_level）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "风险等级（字典表：business_psych_question_risk_level）", converter = DictConvert.class)
    @DictFormat("business_psych_question_risk_level") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String riskLevel;

    @Schema(description = "最低分值（包含）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("最低分值（包含）")
    private Integer minVal;

    @Schema(description = "最高分值（包含）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("最高分值（包含）")
    private Integer maxVal;

    @Schema(description = "内容信息", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("内容信息")
    private String content;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}